package com.zg.third.qcc.enm;

/**
 * DESCRIPTION
 *
 * @author zhanfeng.liang
 * @since 2025-07-29
 */

public enum QccUrlEnum {

    GET_BASIC_DETAILS_BY_NAME ("410", "企业工商信息", "/ECIV4/GetBasicDetailsByName", "GET"),
    KYC ("2003", "客户身份识别", "/CustomerDueDiligence/KYC", "GET"),
    LAND_MERGE_CHECK ("989", "国有土地受让", "/LandMergeCheck/GetList", "GET"),
    SUPPLIER ("724", "供应商查询", "/Supplier/GetList", "GET"),
    CUSTOMER ("723", "客户查询", "/Customer/GetList", "GET"),
    SERIOUS_ILLEGAL_CHECK ("748", "严重违法核查", "/SeriousIllegalCheck/GetList", "GET"),
    JUDICIAL_SALE_CHECK ("744", "司法拍卖核查", "/JudicialSaleCheck/GetList", "GET"),
    CASE_FILING_CHECK ("889", "立案信息核查", "/CaseFilingCheck/GetList", "GET"),
    COURT_ANNO_CHECK ("888", "开庭公告核查", "/CourtAnnoCheck/GetList", "GET"),
    END_EXECUTE_CASE_CHECK ("758", "终本案件核查", "/EndExecuteCaseCheck/GetList", "GET"),
    ADMIN_PENALTY_CHECK ("865", "行政处罚核查", "/AdminPenaltyCheck/GetList", "GET"),
    ENV_PUNISHMENT_CHECK ("746", "环保处罚核查", "/EnvPunishmentCheck/GetList", "GET"),
    PUBLISH_NOTICE_CHECK ("750", "公示催告核查", "/PublishNoticeCheck/GetList", "GET"),
    DISCIPLINARY_CHECK ("1127", "惩戒名单核查", "/DisciplinaryCheck/GetList", "GET"),
    PATENT_V4 ("514", "专利查询", "/PatentV4/Search", "GET"),
    COPY_RIGHT ("233", "软件著作权查询", "/CopyRight/SearchCopyRight", "GET"),
    ENTERPRISE_INFO ("2001", "企业信息核验", "/EnterpriseInfo/Verify", "GET"),
    TAX_CREDIT ("691", "税务信用", "/TaxCredit/GetList", "GET"),
    IPO ("699", "上市企业", "/IPO/GetIPODetail", "GET");


    ;

    private final String apiCode;
    private final String url;
    private final String requestMethod;
    private final String name;

    QccUrlEnum(String apiCode, String name,String url, String requestMethod) {
        this.apiCode = apiCode;
        this.url = url;
        this.requestMethod = requestMethod;
        this.name = name;
    }

    public String getApiCode() {
        return apiCode;
    }

    public String getUrl() {
        return url;
    }

    public String getRequestMethod() {
        return requestMethod;
    }

    public String getName() {
        return name;
    }

    public static ZtQccUrlEnum getByApiCode(String apiCode) {
        for (ZtQccUrlEnum value : ZtQccUrlEnum.values()) {
            if (value.getApiCode().equals(apiCode)) {
                return value;
            }
        }
        return null;
    }
}
